package com.yaorange.certificate.mapper;

import java.util.List;
import java.util.Map;

import com.yaorange.certificate.domain.NjtCertificateCount;
import com.yaorange.certificate.domain.NjtUnitConfig;
import com.yaorange.certificate.vo.NjtCountVo;
import org.apache.ibatis.annotations.Param;

/**
 * 合格证统计数据Mapper接口
 *
 * @author coach tam
 * @date 2024-07-17
 */
public interface NjtCertificateCountMapper
{
    /**
     * 查询合格证统计数据
     *
     * @param id 合格证统计数据主键
     * @return 合格证统计数据
     */
    public NjtCertificateCount selectNjtCertificateCountById(Long id);

    /**
     * 查询合格证统计数据列表
     *
     * @param njtCertificateCount 合格证统计数据
     * @return 合格证统计数据集合
     */
    public List<NjtCertificateCount> selectNjtCertificateCountList(NjtCertificateCount njtCertificateCount);

    /**
     * 新增合格证统计数据
     *
     * @param njtCertificateCount 合格证统计数据
     * @return 结果
     */
    public int insertNjtCertificateCount(NjtCertificateCount njtCertificateCount);

    /**
     * 修改合格证统计数据
     *
     * @param njtCertificateCount 合格证统计数据
     * @return 结果
     */
    public int updateNjtCertificateCount(NjtCertificateCount njtCertificateCount);

    /**
     * 删除合格证统计数据
     *
     * @param id 合格证统计数据主键
     * @return 结果
     */
    public int deleteNjtCertificateCountById(Long id);

    /**
     * 批量删除合格证统计数据
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteNjtCertificateCountByIds(Long[] ids);

    List<String> selectYearList();

    List<NjtCountVo> selectPrintCountList(@Param("certificateCount")NjtCertificateCount njtCertificateCount, @Param("year") String year);

    List<Map<String, Object>> selectStreetStatisticsByArea(NjtUnitConfig njtUnitConfig);
}
